package cn.edu.gsau.info.service.impl;

import cn.edu.gsau.info.dao.UserTypeDao;
import cn.edu.gsau.info.models.BigUser;
import cn.edu.gsau.info.models.ResponseResult;
import cn.edu.gsau.info.models.Usertype;
import cn.edu.gsau.info.service.IUserTypeService;
import cn.edu.gsau.info.service.IUserTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@JsonSerialize
@Service
public class UserTypeServiceImpl extends ServiceImpl<UserTypeDao,Usertype> implements IUserTypeService {
    @Autowired
    UserTypeDao userTypeDao;




    public ResponseResult getUserType() {

        List list= userTypeDao.selectList(null);

        return new ResponseResult(200,"成功",list);
    }
}
